<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 100px;
      height: 100px;
      border: 1px solid red;
    }

    span{width: 100px;
      height: 100px;
      border: 1px solid blue;
      /*默认span属于行内元素不能修改宽高*/
      /*添加以下代码把span改成行内块  则可以修改宽高*/
      /*display: inline-block;*/
      display: none;/*让元素隐藏*/
    }

    img{
      width: 100px;
      height: 100px;
    }
    #a1{
        background-color: #0aa1ed;
        width: 132px;
        height: 40px;
        /*因为超链接属于行内元素，不能修改宽高*/
        /*如果非要改宽高需要将显示方式改成block或inline-block*/
        display: block;
        text-align: center;
        line-height: 40px;
        color:#fff;
        font-size: 20px;
        text-decoration: none;
        /*设置圆角*/
        border-radius: 3px;
    }
    #a2{
        background-color: #e89aa8;
        width: 100px;
        height: 24px;
        display: block;
        color: white;
        text-decoration: none;
        text-align: center;
        line-height: 24px;
        font-size: 12px;

        border-radius: 2px;
    }

  </style>
</head>
<body>
<a id="a1">查看详情</a>
<a id="a2">查看详情</a>
<img src="../b.jpg" alt="">
<img src="../b.jpg" alt="">
<img src="../b.jpg" alt="">
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body>
</html>